package com.iot.modbus.route;

import com.iot.modbus.route.impl.SimpleWriterSessionRoute;
import com.serotonin.modbus4j.exception.ErrorResponseException;
import com.serotonin.modbus4j.exception.ModbusTransportException;
import com.serotonin.modbus4j.ip.IpParameters;

public class WriterRoute {

    private static final WriterSessionRoute route = new SimpleWriterSessionRoute();


    public static void writeInt16(IpParameters ipParameters, int startOffset, Object values) throws ModbusTransportException, ErrorResponseException
    {
        route.writeInt16(ipParameters, startOffset, values);
    }

    public static void writeFloat32(IpParameters ipParameters, int startOffset, Object values) throws ModbusTransportException, ErrorResponseException
    {
        route.writeFloat32(ipParameters, startOffset, values);
    }

}
